<?php
$this->breadcrumbs=array(
	'Newsflashes'=>array('index'),
	$model->id_news_flash,
);

$this->menu=array(
	array('label'=>'List NEWSFLASH', 'url'=>array('index')),
	array('label'=>'Create NEWSFLASH', 'url'=>array('create')),
	array('label'=>'Update NEWSFLASH', 'url'=>array('update', 'id'=>$model->id_news_flash)),
	array('label'=>'Delete NEWSFLASH', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id_news_flash),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage NEWSFLASH', 'url'=>array('admin')),
);
?>

<h1>View NEWSFLASH #<?php echo $model->id_news_flash; ?></h1>

<?php
$folderUpload = hash('sha512', "newFlash" . base64_decode(Yii::app()->user->school));
$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id_news_flash',
		   array(
            'label' => 'Image',
            'type' => 'raw',
            'value' => html_entity_decode(CHtml::image(Yii::app()->request->baseUrl. '/file/' . $folderUpload . '/' .$model->image,'alt',array('width'=>341,'height'=>232))),
            'cssClass'=>'imagePreview'
        ),
		'owner',
		'notice',
	),
)); ?>
